import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/Login.vue'
import SystemAdmin from '../views/SystemAdmin.vue'
import AssetManager from '../views/AssetManager.vue'
import AddIfAdmin from '../views/AddIfAdmin.vue'
import SearchIfAdmin from '../views/searchIfAdmin'
import UpdateIfAdmin from '../views/UpdateIfAdmin.vue'
import SelectAdmin from '../views/selectAdmin.vue'
import UpdateAssetManager from '../views/UpdateAssetManager.vue'
import OrganzationAdd from '../views/OrganzationAdd.vue'
import SearchOrg from '../views/searchOrg.vue'
import UpdateOrg from '../views/UpdateOrg.vue'
import AssetAdd from '../views/AssetAdd.vue'
import SelectAsset from '../views/selectAsset.vue'
import AddTest from '../views/AddTest.vue'
import SearchTest from '../views/searchTest'
import UpdateTest from '../views/UpdateTest.vue'
import ScanAdd from '../views/ScanAdd.vue'
import SearchScan from '../views/SearchScan.vue'
import UpdateScan from '../views/UpdateScan.vue'
import AssetAdmin from '../views/AssetAdmin.vue'
import IfAdmin from '../views/IfAdmin.vue'
import UpdateAsset from '../views/UpdateAsset.vue';
Vue.use(VueRouter)

const routes = [

  {
    path: '/AssetAdmin',
    name: '资产管理员登录',
    component: AssetAdmin,
children: [

  {
    path: '/searchIfAdmin1',
    name: '渗透分析员查询',
    component: SearchIfAdmin
  },
  {
    path: '/UpdateIfAdmin1',
    name: '修改渗透分析员',
    component: UpdateIfAdmin
  },

  {
    path: '/selectAdmin1',
    name: '管理员查询',
    component: SelectAdmin
  },
  {
    path: '/updateAssetManager1',
    name: '修改资产管理员',
    component: UpdateAssetManager
  },
  {
    path: '/OrganzationAdd1',
    name: '组织添加',
    component: OrganzationAdd
  },
  {
    path: '/UpdateOrg1',
    name: '组织更新',
    component: UpdateOrg
  },
  {
    path: '/searchOrg1',
    name: '组织查询',
    component: SearchOrg
  },
  {
    path: '/AssetAdd1',
    name: '资产添加',
    component: AssetAdd
  },
  {
    path: '/selectAsset1',
    name: '资产查询',
    component: SelectAsset
  },
  {
    path: '/UpdateAsset1',
    name: '资产更新',
    component: UpdateAsset
  },
  {
    path: '/AddTest1',
    name: '添加任务',
    component: AddTest
  },
  {
    path: '/searchTest1',
    name: '任务查询',
    component: SearchTest
  },
  {
    path: '/AddIfAdmin1',
    name: '添加渗透分析员',
    component: AddIfAdmin
  },
]
  },




  {
    path: '/IfAdmin',
    name: '渗透分析员登录',
    component: IfAdmin,
    children: [

      {
        path: '/searchIfAdmin',
        name: '渗透分析员查询',
        component: SearchIfAdmin
      },
      {
        path: '/UpdateIfAdmin',
        name: '修改渗透分析员',
        component: UpdateIfAdmin
      },

      {
        path: '/selectAdmin',
        name: '管理员查询',
        component: SelectAdmin
      },

      {
        path: '/AddTest',
        name: '添加任务',
        component: AddTest
      },
      {
        path: '/searchTest',
        name: '任务查询',
        component: SearchTest
      },
      {
        path: '/UpdateTest',
        name: '任务更新',
        component: UpdateTest
      },
      {
        path: '/ScanAdd',
        name: '漏洞添加',
        component: ScanAdd
      },
      {
        path: '/SearchScan',
        name: '漏洞扫描添加',
        component: SearchScan
      },
      {
        path: '/UpdateScan',
        name: '漏洞添加',
        component: UpdateScan
      },
    ]
  },



  {
    path: '/systemAdmin',
    name: '平台管理员',
    component: SystemAdmin,
    children: [
      {
        path: '/addIfAdmin3',
        name: '添加资产管理员',
        component: AddIfAdmin
      },
      {
        path: '/searchIfAdmin3',
        name: '渗透分析员查询',
        component: SearchIfAdmin
      },

      {
        path: '/UpdateIfAdmin3',
        name: '修改渗透分析员',
        component: UpdateIfAdmin
      },
      {
        path: '/assetManager3',
        name: '资产管理员管理',
        component: AssetManager
      },
      {
        path: '/selectAdmin3',
        name: '管理员查询',
        component: SelectAdmin
      },
      {
        path: '/updateAssetManager3',
        name: '修改资产管理员',
        component: UpdateAssetManager
      },
      {
        path: '/OrganzationAdd3',
        name: '组织添加',
        component: OrganzationAdd
      },
      {
        path: '/UpdateOrg3',
        name: '组织更新',
        component: UpdateOrg
      },
      {
        path: '/searchOrg3',
        name: '组织查询',
        component: SearchOrg
      },
      {
        path: '/AssetAdd3',
        name: '资产添加',
        component: AssetAdd
      },
      {
        path: '/selectAsset3',
        name: '资产查询',
        component: SelectAsset
      },
      {
        path: '/UpdateAsset3',
        name: '资产更新',
        component: UpdateAsset
      },
      {
        path: '/AddTest3',
        name: '添加任务',
        component: AddTest
      },
      {
        path: '/searchTest3',
        name: '任务查询',
        component: SearchTest
      },
      {
        path: '/UpdateTest3',
        name: '任务更新',
        component: UpdateTest
      },
      {
        path: '/ScanAdd3',
        name: '漏洞添加',
        component: ScanAdd
      },
      {
        path: '/SearchScan3',
        name: '漏洞扫描添加',
        component: SearchScan
      },
      {
        path: '/UpdateScan3',
        name: '漏洞添加',
        component: UpdateScan
      },
      {
        path: '/AddIfAdmin3',
        name: '添加渗透分析员',
        component: AddIfAdmin
      },
  ]
  },


  {
    path: '/login',
    name: '登录',
    component: Login
  }

]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
